﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="BadmintonBuddy.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Suggestions, Feedback, Issues, Bugs -- Please let us know !!
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('input:button').button().css('margin', '5px');
            $('input:submit').click(function () {
                var str = $('#desc').val();
                if ($.trim(str) == '') {
                    alert('Let us know the feedback/issue !!!');
                    return false;
                }
            });
        });
    </script>
    <div class="feedback" style="width: 70%;">
        <h1 style="padding-bottom: 15px;">
            Feedback</h1>
        <form id="feedback" method="post" action="/Feedback">        
        <label name="type">
            I would like to:</label>
        <select name="feedbacktype">
            <option value="Report a bug">Report a bug</option>
            <option value="Suggest a feature" selected="selected">Suggest a feature</option>
            <option value="Give a feedback">Give a feedback</option>
            <option value="Get more information">Get more information</option>
        </select>
        <h3>
            Comments</h3>
        <p>
            Enter your feedback here. If you are reporting a bug please describe it in detail
            and if possible with the URL of the issue.</p>
        <textarea name="desc" id="desc" cols="70" rows="10" style="display: block;"></textarea>
        <label name="emaillbl" class="margintt8">
            E-mail Address:</label>
        <input id="email" name="email" class="margintt8" style="width: 200px" />                
        <div id="captcha" class="margintt8">
            <%= Html.Captcha("myCaptcha") %>
                <div>Please enter the above letters: <%= Html.TextBox("attempt","",new{@id="attempt"}) %></div>
                <div id="captchaerror" class="error dispn">
                    Sorry! Those aren't the correct letters. Please verify again.
                </div>
        </div>
        <div>
            <input type="button" id="Button1" value="Submit" onclick="javascript:validateCaptcha('feedback');" />            
        </div>
        </form>        
    </div>
</asp:Content>